package vo;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.codehaus.jackson.annotate.JsonIgnore;

public class ReviewVO {
	private int review_no;
	private MemberVO member;
	private MajorunitVO majorunit;
	private PositionVO position;
	private String review_title;
	private String review_pros;
	private String review_cons;
	private String review_way;
	private int review_giveup;
	private int review_gender;
	private int review_recommend;
	private int review_approval;
	private int review_score;
	private int review_job;
	private int review_professor;
	private int review_facility;
	private int review_scholarship;
	private int review_awareness;
	private int review_delete;
	private Date review_regdate;

	public ReviewVO() {}

	public ReviewVO(int review_no) {
		this.review_no = review_no;
	}

	/**
	 * didWriteReview
	 */
	public ReviewVO(MemberVO member, MajorunitVO majorunit) {
		this.member = member;
		this.majorunit = majorunit;
	}
	
	/**
	 * registerReview
	 */
	public ReviewVO(MemberVO member, MajorunitVO majorunit,
			PositionVO position, String review_title, String review_pros,
			String review_cons, String review_way, int review_giveup,
			int review_gender, int review_recommend, int review_score,
			int review_job, int review_professor, int review_facility,
			int review_scholarship, int review_awareness) {
		this.member = member;
		this.majorunit = majorunit;
		this.position = position;
		this.review_title = review_title;
		this.review_pros = review_pros;
		this.review_cons = review_cons;
		this.review_way = review_way;
		this.review_giveup = review_giveup;
		this.review_gender = review_gender;
		this.review_recommend = review_recommend;
		this.review_score = review_score;
		this.review_job = review_job;
		this.review_professor = review_professor;
		this.review_facility = review_facility;
		this.review_scholarship = review_scholarship;
		this.review_awareness = review_awareness;
	}

	public ReviewVO(int review_no, MemberVO member, MajorunitVO majorunit,
			PositionVO position, String review_title, String review_pros,
			String review_cons, String review_way, int review_giveup,
			int review_gender, int review_recommend, int review_approval,
			int review_score, int review_job, int review_professor,
			int review_facility, int review_scholarship, int review_awareness,
			int review_delete, Date review_regdate) {
		this.review_no = review_no;
		this.member = member;
		this.majorunit = majorunit;
		this.position = position;
		this.review_title = review_title;
		this.review_pros = review_pros;
		this.review_cons = review_cons;
		this.review_way = review_way;
		this.review_giveup = review_giveup;
		this.review_gender = review_gender;
		this.review_recommend = review_recommend;
		this.review_approval = review_approval;
		this.review_score = review_score;
		this.review_job = review_job;
		this.review_professor = review_professor;
		this.review_facility = review_facility;
		this.review_scholarship = review_scholarship;
		this.review_awareness = review_awareness;
		this.review_delete = review_delete;
		this.review_regdate = review_regdate;
	}
	
	@JsonIgnore
	public String getPrintTime(){
		SimpleDateFormat format=new SimpleDateFormat("YYYY-M-d");
		return format.format(review_regdate);
	}

	public int getReview_no() {
		return review_no;
	}

	public void setReview_no(int review_no) {
		this.review_no = review_no;
	}

	public MemberVO getMember() {
		return member;
	}

	public void setMember(MemberVO member) {
		this.member = member;
	}

	public MajorunitVO getMajorunit() {
		return majorunit;
	}

	public void setMajorunit(MajorunitVO majorunit) {
		this.majorunit = majorunit;
	}

	public PositionVO getPosition() {
		return position;
	}

	public void setPosition(PositionVO position) {
		this.position = position;
	}

	public String getReview_title() {
		return review_title;
	}

	public void setReview_title(String review_title) {
		this.review_title = review_title;
	}

	public String getReview_pros() {
		return review_pros;
	}

	public void setReview_pros(String review_pros) {
		this.review_pros = review_pros;
	}

	public String getReview_cons() {
		return review_cons;
	}

	public void setReview_cons(String review_cons) {
		this.review_cons = review_cons;
	}

	public String getReview_way() {
		return review_way;
	}

	public void setReview_way(String review_way) {
		this.review_way = review_way;
	}

	public int getReview_giveup() {
		return review_giveup;
	}

	public void setReview_giveup(int review_giveup) {
		this.review_giveup = review_giveup;
	}

	public int getReview_gender() {
		return review_gender;
	}

	public void setReview_gender(int review_gender) {
		this.review_gender = review_gender;
	}

	public int getReview_recommend() {
		return review_recommend;
	}

	public void setReview_recommend(int review_recommend) {
		this.review_recommend = review_recommend;
	}

	public int getReview_approval() {
		return review_approval;
	}

	public void setReview_approval(int review_approval) {
		this.review_approval = review_approval;
	}

	public int getReview_score() {
		return review_score;
	}

	public void setReview_score(int review_score) {
		this.review_score = review_score;
	}

	public int getReview_job() {
		return review_job;
	}

	public void setReview_job(int review_job) {
		this.review_job = review_job;
	}

	public int getReview_professor() {
		return review_professor;
	}

	public void setReview_professor(int review_professor) {
		this.review_professor = review_professor;
	}

	public int getReview_facility() {
		return review_facility;
	}

	public void setReview_facility(int review_facility) {
		this.review_facility = review_facility;
	}

	public int getReview_scholarship() {
		return review_scholarship;
	}

	public void setReview_scholarship(int review_scholarship) {
		this.review_scholarship = review_scholarship;
	}

	public int getReview_awareness() {
		return review_awareness;
	}

	public void setReview_awareness(int review_awareness) {
		this.review_awareness = review_awareness;
	}

	public int getReview_delete() {
		return review_delete;
	}

	public void setReview_delete(int review_delete) {
		this.review_delete = review_delete;
	}

	public Date getReview_regdate() {
		return review_regdate;
	}

	public void setReview_regdate(Date review_regdate) {
		this.review_regdate = review_regdate;
	}

	@Override
	public String toString() {
		return "ReviewVO [review_no=" + review_no + ", member=" + member
				+ ", majorunit=" + majorunit + ", position=" + position
				+ ", review_title=" + review_title + ", review_pros="
				+ review_pros + ", review_cons=" + review_cons
				+ ", review_way=" + review_way + ", review_giveup="
				+ review_giveup + ", review_gender=" + review_gender
				+ ", review_recommend=" + review_recommend
				+ ", review_approval=" + review_approval + ", review_score="
				+ review_score + ", review_job=" + review_job
				+ ", review_professor=" + review_professor
				+ ", review_facility=" + review_facility
				+ ", review_scholarship=" + review_scholarship
				+ ", review_awareness=" + review_awareness + ", review_delete="
				+ review_delete + ", review_regdate=" + review_regdate + "]";
	}
}
